import { createApp } from 'vue'
import ElementPlus from 'element-plus'
// import './style.css'
import 'element-plus/dist/index.css'
import App from '@/App.vue'
import '@/styles/index.scss'
import 'virtual:svg-icons-register'
import gloablComponent from '@/components/index'
import router from './router'
import pinia from './store'
import './permission'
import locale from "element-plus/es/locale/lang/zh-cn";
import 'element-plus/theme-chalk/dark/css-vars.css'
import { isHasButton } from './directive/has'
const app = createApp(App)

isHasButton(app)
console.log('import.meta.env')
console.log(import.meta.env)
app.use(ElementPlus, { locale })
app.use(gloablComponent)
// app.use(ElementPlus)
app.use(router)
app.use(pinia)
app.mount('#app')